
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>12.4 Storm Hook · Mantou Book</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="mantou">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="12.5 Kafka Bridge.html" />
    
    
    <link rel="prev" href="12.3 Sqoop Hook.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"mantoudev","repo":"atlas_cn","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://mantoudev.com" target="_blank" class="custom-link">MantouDev</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">Apache Atlas开发指南(中文版)</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="01.高级架构.html">
            
                <a href="01.高级架构.html">
            
                    
                    一、高级架构​
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="02.类型系统.html">
            
                <a href="02.类型系统.html">
            
                    
                    二、类型系统​
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="03.基本搜索.html">
            
                <a href="03.基本搜索.html">
            
                    
                    三、基本搜索
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="04.高级搜索.html">
            
                <a href="04.高级搜索.html">
            
                    
                    四、高级搜索
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="05.术语.html">
            
                <a href="05.术语.html">
            
                    
                    五、术语​
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="06.安全.html">
            
                <a href="06.安全.html">
            
                    
                    六、安全
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="07.认证.html">
            
                <a href="07.认证.html">
            
                    
                    七、认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="08.授权模型.html">
            
                <a href="08.授权模型.html">
            
                    
                    八、Atlas授权模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="8.1 简单授权.html">
            
                <a href="8.1 简单授权.html">
            
                    
                    8.1 配置Atlas Simple Authorizer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="8.2 Ranger授权.html">
            
                <a href="8.2 Ranger授权.html">
            
                    
                    8.2 配置Atlas Ranger Authorizer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="09.分类传播.html">
            
                <a href="09.分类传播.html">
            
                    
                    九、分类传播​
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="10.配置Atlas.html">
            
                <a href="10.配置Atlas.html">
            
                    
                    十、配置Atlas属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="11.通知.html">
            
                <a href="11.通知.html">
            
                    
                    十一、通知
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" >
            
                <span>
            
                    
                    十二、Hook & Bridge
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="12.1 HBase Hook & Bridge.html">
            
                <a href="12.1 HBase Hook & Bridge.html">
            
                    
                    12.1 HBase Hook＆Bridge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="12.2 Hive Hook & Bridge.html">
            
                <a href="12.2 Hive Hook & Bridge.html">
            
                    
                    12.2 Hive Hook＆Bridge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="12.3 Sqoop Hook.html">
            
                <a href="12.3 Sqoop Hook.html">
            
                    
                    12.3 Sqoop Hook
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.13.4" data-path="12.4 Storm Hook.html">
            
                <a href="12.4 Storm Hook.html">
            
                    
                    12.4 Storm Hook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="12.5 Kafka Bridge.html">
            
                <a href="12.5 Kafka Bridge.html">
            
                    
                    12.5 Kafka Bridge
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="13.容错和高可用选项.html">
            
                <a href="13.容错和高可用选项.html">
            
                    
                    十三、容错和高可用选项
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >12.4 Storm Hook</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#storm-hook"><b></b>Storm Hook</a></li><ul><li><span class="title-icon "></span><a href="#1-&#x4ECB;&#x7ECD;"><b></b>1. &#x4ECB;&#x7ECD;</a></li><li><span class="title-icon "></span><a href="#2-storm&#x6570;&#x636E;&#x6A21;&#x578B;"><b></b>2. Storm&#x6570;&#x636E;&#x6A21;&#x578B;</a></li><li><span class="title-icon "></span><a href="#3-storm-hook"><b></b>3. Storm hook</a></li><li><span class="title-icon "></span><a href="#4-&#x9650;&#x5236;"><b></b>4. &#x9650;&#x5236;</a></li><li><span class="title-icon "></span><a href="#5-&#x5B89;&#x88C5;"><b></b>5. &#x5B89;&#x88C5;</a></li><li><span class="title-icon "></span><a href="#6-&#x914D;&#x7F6E;"><b></b>6. &#x914D;&#x7F6E;</a></li><ul><li><span class="title-icon "></span><a href="#61-storm-&#x914D;&#x7F6E;"><b></b>6.1 Storm &#x914D;&#x7F6E;</a></li></ul></ul></ul></div><a href="#storm-hook" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="storm-hook"><a name="storm-hook" class="anchor-navigation-ex-anchor" href="#storm-hook"><i class="fa fa-link" aria-hidden="true"></i></a><a name="storm-hook" class="plugin-anchor" href="#storm-hook"><i class="fa fa-link" aria-hidden="true"></i></a>Storm Hook</h1>
<h2 id="1-&#x4ECB;&#x7ECD;"><a name="1-&#x4ECB;&#x7ECD;" class="anchor-navigation-ex-anchor" href="#1-&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="1-&#x4ECB;&#x7ECD;" class="plugin-anchor" href="#1-&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x4ECB;&#x7ECD;</h2>
<p>Apache Storm&#x662F;&#x4E00;&#x4E2A;&#x5206;&#x5E03;&#x5F0F;&#x5B9E;&#x65F6;&#x8BA1;&#x7B97;&#x7CFB;&#x7EDF;&#x3002; Storm&#x53EF;&#x4EE5;&#x8F7B;&#x677E;&#x53EF;&#x9760;&#x5730;&#x5904;&#x7406;&#x65E0;&#x9650;&#x6570;&#x636E;&#x6D41;&#xFF0C;&#x5B9E;&#x73B0;Hadoop&#x4E3A;&#x6279;&#x5904;&#x7406;&#x6240;&#x505A;&#x7684;&#x5B9E;&#x65F6;&#x5904;&#x7406;&#x3002;&#x8BE5;&#x8FC7;&#x7A0B;&#x672C;&#x8D28;&#x4E0A;&#x662F;&#x8282;&#x70B9;&#x7684;DAG&#xFF0C;&#x79F0;&#x4E3A;<strong>&#x62D3;&#x6251;</strong>&#x3002;</p>
<p>Apache Atlas&#x662F;&#x4E00;&#x4E2A;&#x5143;&#x6570;&#x636E;&#x5B58;&#x50A8;&#x5E93;&#xFF0C;&#x652F;&#x6301;&#x7AEF;&#x5230;&#x7AEF;&#x6570;&#x636E;&#x8840;&#x7F18;&#xFF0C;&#x641C;&#x7D22;&#x548C;&#x5173;&#x8054;&#x4E1A;&#x52A1;&#x5206;&#x7C7B;&#x3002;</p>
<p>Storm Hook&#x96C6;&#x6210;&#x7684;&#x76EE;&#x6807;&#x662F;&#x5C06;&#x64CD;&#x4F5C;&#x62D3;&#x6251;&#x5143;&#x6570;&#x636E;&#x4E0E;&#x57FA;&#x7840;&#x6570;&#x636E;&#x6E90;&#xFF0C;&#x76EE;&#x6807;&#xFF0C;&#x6D3E;&#x751F;&#x8FC7;&#x7A0B;&#x548C;&#x4EFB;&#x4F55;&#x53EF;&#x7528;&#x4E1A;&#x52A1;&#x4E0A;&#x4E0B;&#x6587;&#x4E00;&#x8D77;&#x63A8;&#x9001;&#xFF0C;&#x4EE5;&#x4FBF;Atlas&#x53EF;&#x4EE5;&#x6355;&#x83B7;&#x6B64;&#x62D3;&#x6251;&#x7684;&#x8840;&#x7F18;&#x3002;</p>
<p>&#x8BE5;&#x8FC7;&#x7A0B;&#x5206;&#x4E3A;&#x4E24;&#x90E8;&#x5206;&#xFF0C;&#x8BE6;&#x8FF0;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>&#x7528;&#x4E8E;&#x8868;&#x793A;Storm&#x4E2D;&#x6982;&#x5FF5;&#x7684;&#x6570;&#x636E;&#x6A21;&#x578B;</li>
<li>Storm Atlas Hook&#x66F4;&#x65B0;Atlas&#x4E2D;&#x7684;&#x5143;&#x6570;&#x636E;</li>
</ul>
<h2 id="2-storm&#x6570;&#x636E;&#x6A21;&#x578B;"><a name="2-storm&#x6570;&#x636E;&#x6A21;&#x578B;" class="anchor-navigation-ex-anchor" href="#2-storm&#x6570;&#x636E;&#x6A21;&#x578B;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="2-storm&#x6570;&#x636E;&#x6A21;&#x578B;" class="plugin-anchor" href="#2-storm&#x6570;&#x636E;&#x6A21;&#x578B;"><i class="fa fa-link" aria-hidden="true"></i></a>2. Storm&#x6570;&#x636E;&#x6A21;&#x578B;</h2>
<p>&#x6570;&#x636E;&#x6A21;&#x578B;&#x5728;Atlas&#x4E2D;&#x8868;&#x793A;&#x4E3A;&#x7C7B;&#x578B;&#x3002;&#x5B83;&#x5305;&#x542B;&#x62D3;&#x6251;&#x56FE;&#x4E2D;&#x5404;&#x79CD;&#x8282;&#x70B9;&#x7684;&#x63CF;&#x8FF0;&#xFF0C;&#x4F8B;&#x5982;&#x55B7;&#x53E3;&#x548C;&#x87BA;&#x6813;&#x4EE5;&#x53CA;&#x76F8;&#x5E94;&#x7684;&#x751F;&#x4EA7;&#x8005;&#x548C;&#x6D88;&#x8D39;&#x8005;&#x7C7B;&#x578B;&#x3002;</p>
<p>Atlas&#x4E2D;&#x6DFB;&#x52A0;&#x4E86;&#x4EE5;&#x4E0B;&#x7C7B;&#x578B;&#x3002;</p>
<ul>
<li><p><code>storm_topology</code>: &#x8868;&#x793A;&#x7C97;&#x7C92;&#x5EA6;&#x62D3;&#x6251;&#x3002; storm_topology&#x6E90;&#x81EA;Atlas Process&#x7C7B;&#x578B;&#xFF0C;&#x56E0;&#x6B64;&#x53EF;&#x7528;&#x4E8E;&#x5411;Atlas&#x901A;&#x77E5;&#x8C31;&#x7CFB;&#x3002;</p>
</li>
<li><p>&#x6DFB;&#x52A0;&#x4E86;&#x4EE5;&#x4E0B;&#x6570;&#x636E;&#x96C6;: <code>kafka_topic</code>&#xFF0C;<code>jms_topic</code>&#xFF0C;<code>hbase_table</code>&#xFF0C;<code>hdfs_data_set</code>&#x3002;&#x8FD9;&#x4E9B;&#x90FD;&#x6765;&#x81EA;Atlas&#x6570;&#x636E;&#x96C6;&#x7C7B;&#x578B;&#xFF0C;&#x56E0;&#x6B64;&#x5F62;&#x6210;&#x4E86;&#x8840;&#x7F18;&#x56FE;&#x7684;&#x7EC8;&#x70B9;&#x3002;</p>
<ul>
<li><code>storm_spout</code>: &#x5177;&#x6709;&#x8F93;&#x51FA;&#x7684;&#x6570;&#x636E;&#x751F;&#x6210;&#x5668;&#xFF0C;&#x901A;&#x5E38;&#x662F;Kafka&#xFF0C;JMS</li>
<li><code>storm_bolt</code>: &#x5177;&#x6709;&#x8F93;&#x5165;&#x548C;&#x8F93;&#x51FA;&#x7684;&#x6570;&#x636E;&#x6D88;&#x8D39;&#x8005;&#xFF0C;&#x901A;&#x5E38;&#x662F;Hive&#xFF0C;HBase&#xFF0C;HDFS&#x7B49;&#x3002;</li>
</ul>
</li>
</ul>
<p>Storm Atlas hook&#x81EA;&#x52A8;&#x6CE8;&#x518C;&#x4F9D;&#x8D56;&#x6A21;&#x578B;&#xFF0C;&#x5982;Hive&#x6570;&#x636E;&#x6A21;&#x578B;&#xFF0C;&#x5982;&#x679C;&#x5B83;&#x53D1;&#x73B0;Atlas&#x670D;&#x52A1;&#x5668;&#x4E0D;&#x77E5;&#x9053;&#x8FD9;&#x4E9B;&#x6A21;&#x578B;&#x3002;</p>
<p><code>org.apache.atlas.storm.model.StormDataModel</code>&#x7684;&#x7C7B;&#x5B9A;&#x4E49;&#x4E2D;&#x63CF;&#x8FF0;&#x4E86;&#x6BCF;&#x79CD;&#x7C7B;&#x578B;&#x7684;&#x6570;&#x636E;&#x6A21;&#x578B;&#x3002;</p>
<h2 id="3-storm-hook"><a name="3-storm-hook" class="anchor-navigation-ex-anchor" href="#3-storm-hook"><i class="fa fa-link" aria-hidden="true"></i></a><a name="3-storm-hook" class="plugin-anchor" href="#3-storm-hook"><i class="fa fa-link" aria-hidden="true"></i></a>3. Storm hook</h2>
<p>&#x5728;Storm&#x4E2D;&#x6210;&#x529F;&#x6CE8;&#x518C;&#x65B0;&#x62D3;&#x6251;&#x65F6;&#x4F1A;&#x6536;&#x5230;Atlas&#x901A;&#x77E5;&#x3002; Storm&#x5728;Storm&#x5BA2;&#x6237;&#x7AEF;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A; <code>hookbacktype.storm.ISubmitterHook</code>&#xFF0C;&#x7528;&#x4E8E;&#x63D0;&#x4EA4;Storm&#x62D3;&#x6251;&#x3002;</p>
<p>Storm Atlas hook&#x62E6;&#x622A; hook&#x540E;&#x6267;&#x884C;&#x5E76;&#x4ECE;&#x62D3;&#x6251;&#x4E2D;&#x63D0;&#x53D6;&#x5143;&#x6570;&#x636E;&#x5E76;&#x4F7F;&#x7528;&#x5B9A;&#x4E49;&#x7684;&#x7C7B;&#x578B;&#x66F4;&#x65B0;Atlas&#x3002; Atlas&#x5728;<code>org.apache.atlas.storm.hook.StormAtlasHook</code>&#x4E2D;&#x5B9E;&#x73B0;&#x4E86;Storm&#x5BA2;&#x6237;&#x7AEF;hook&#x63A5;&#x53E3;&#x3002;</p>
<h2 id="4-&#x9650;&#x5236;"><a name="4-&#x9650;&#x5236;" class="anchor-navigation-ex-anchor" href="#4-&#x9650;&#x5236;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="4-&#x9650;&#x5236;" class="plugin-anchor" href="#4-&#x9650;&#x5236;"><i class="fa fa-link" aria-hidden="true"></i></a>4. &#x9650;&#x5236;</h2>
<p>&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#x9002;&#x7528;&#x4E8E;&#x96C6;&#x6210;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x7248;&#x672C;&#x3002;</p>
<ul>
<li>&#x53EA;&#x6709;&#x65B0;&#x7684;&#x62D3;&#x6251;&#x63D0;&#x4EA4;&#x5728;Atlas&#x4E2D;&#x6CE8;&#x518C;&#xFF0C;&#x5426;&#x5219;&#x4EFB;&#x4F55;&#x751F;&#x547D;&#x5468;&#x671F;&#x66F4;&#x6539;&#x90FD;&#x4E0D;&#x4F1A;&#x53CD;&#x6620;&#x5728;Atlas&#x4E2D;&#x3002;</li>
<li>&#x63D0;&#x4EA4;Storm&#x62D3;&#x6251;&#x4EE5;&#x6355;&#x83B7;&#x5143;&#x6570;&#x636E;&#x65F6;&#xFF0C;Atlas&#x670D;&#x52A1;&#x5668;&#x9700;&#x8981;&#x5728;&#x7EBF;&#x3002;</li>
<li>Hook&#x76EE;&#x524D;&#x4E0D;&#x652F;&#x6301;&#x6355;&#x83B7;&#x81EA;&#x5B9A;&#x4E49;spouts&#x548C;bolts&#x7684;&#x8840;&#x7F18;&#x3002;</li>
</ul>
<h2 id="5-&#x5B89;&#x88C5;"><a name="5-&#x5B89;&#x88C5;" class="anchor-navigation-ex-anchor" href="#5-&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="5-&#x5B89;&#x88C5;" class="plugin-anchor" href="#5-&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>5. &#x5B89;&#x88C5;</h2>
<p>Storm Atlas Hook&#x9700;&#x8981;&#x5728;&#x5BA2;&#x6237;&#x7AEF;&#x624B;&#x52A8;&#x5B89;&#x88C5;&#x5728;Storm&#x4E2D;&#x3002;</p>
<ul>
<li>&#x89E3;&#x538B;<code>apache-atlas-${project.version}-storm-hook.tar.gz</code></li>
<li>`cd apache-atlas-storm-hook-${project.version}``</li>
<li>&#x5C06;&#x6587;&#x4EF6;&#x5939;<code>apache-atlas-storm-hook-${project.version}/hook/storm</code>&#x5230;<code>$ ATLAS_PACKAGE/hook/storm</code></li>
<li>&#x9700;&#x8981;&#x5C06;<code>$ATLAS_PACKAGE/hook/storm</code>&#x4E2D;&#x7684;Storm Atlas hook&#x590D;&#x5236;&#x5230;<code>$STORM_HOME/extlib</code>&#x3002;&#x5C06;STORM_HOME&#x66FF;&#x6362;&#x4E3A;Storm&#x5B89;&#x88C5;&#x8DEF;&#x5F84;&#x3002;</li>
</ul>
<p>&#x5728;&#x5C06;atlas hook&#x5B89;&#x88C5;&#x5230;Storm&#x540E;&#x91CD;&#x65B0;&#x542F;&#x52A8;&#x6240;&#x6709;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x3002;</p>
<h2 id="6-&#x914D;&#x7F6E;"><a name="6-&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#6-&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="6-&#x914D;&#x7F6E;" class="plugin-anchor" href="#6-&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>6. &#x914D;&#x7F6E;</h2>
<h3 id="61-storm-&#x914D;&#x7F6E;"><a name="61-storm-&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#61-storm-&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="61-storm-&#x914D;&#x7F6E;" class="plugin-anchor" href="#61-storm-&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>6.1 Storm &#x914D;&#x7F6E;</h3>
<p>&#x9700;&#x8981;&#x5728;<code>$STORM_HOME/conf/storm.yaml</code>&#x4E2D;&#x7684;Storm&#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;&#x4E2D;&#x914D;&#x7F6E;Storm Atlas Hook&#xFF0C;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<pre><code>storm.topology.submission.notifier.plugin.class: &quot;org.apache.atlas.storm.hook.StormAtlasHook&quot;
</code></pre><p>&#x8FD8;&#x9700;&#x8981;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x201C;cluster name&#x201D;&#xFF0C;&#x8BE5;&#x540D;&#x79F0;&#x5C06;&#x7528;&#x4F5C;Atlas&#x4E2D;&#x6CE8;&#x518C;&#x7684;&#x5BF9;&#x8C61;&#x7684;&#x547D;&#x540D;&#x7A7A;&#x95F4;&#x3002;&#x6B64;&#x540D;&#x79F0;&#x5C06;&#x7528;&#x4E8E;&#x547D;&#x540D;&#x7A7A;&#x95F4;Storm&#x62D3;&#x6251;&#xFF0C;spouts &#x548C; bolts&#x3002;</p>
<p>&#x7406;&#x60F3;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x6570;&#x636E;&#x96C6;&#x7B49;&#x5176;&#x4ED6;&#x5BF9;&#x8C61;&#x5E94;&#x4F7F;&#x7528;&#x751F;&#x6210;&#x5B83;&#x4EEC;&#x7684;&#x7EC4;&#x4EF6;&#x7684;&#x96C6;&#x7FA4;&#x540D;&#x79F0;&#x8FDB;&#x884C;&#x6807;&#x8BC6;&#x3002;&#x5BF9;&#x4E8E;&#x4F8B;&#x5982;&#x5E94;&#x4F7F;&#x7528;Hive&#x4E2D;&#x8BBE;&#x7F6E;&#x7684;&#x7FA4;&#x96C6;&#x540D;&#x79F0;&#x6765;&#x6807;&#x8BC6;Hive&#x8868;&#x548C;&#x6570;&#x636E;&#x5E93;&#x3002;&#x5982;&#x679C;Hive&#x914D;&#x7F6E;&#x5728;&#x5BA2;&#x6237;&#x7AEF;&#x4E0A;&#x63D0;&#x4EA4;&#x7684;Storm&#x62D3;&#x6251;jar&#x4E2D;&#x53EF;&#x7528;&#x5E76;&#x4E14;&#x5728;&#x90A3;&#x91CC;&#x5B9A;&#x4E49;&#x4E86;&#x96C6;&#x7FA4;&#x540D;&#x79F0;&#xFF0C;&#x5219;Storm Atlas hook&#x5C06;&#x9009;&#x62E9;&#x6B64;&#x9009;&#x9879;&#x3002;&#x5BF9;&#x4E8E;HBase&#x6570;&#x636E;&#x96C6;&#xFF0C;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x7C7B;&#x4F3C;&#x3002;&#x5982;&#x679C;&#x6B64;&#x914D;&#x7F6E;&#x4E0D;&#x53EF;&#x7528;&#xFF0C;&#x5C06;&#x4F7F;&#x7528;Storm&#x914D;&#x7F6E;&#x4E2D;&#x8BBE;&#x7F6E;&#x7684;&#x7FA4;&#x96C6;&#x540D;&#x79F0;&#x3002;</p>
<pre><code>atlas.cluster.name: &quot;cluster_name&quot;
</code></pre><p>&#x5728;<code>$STORM_HOME/conf/storm_env.ini</code>&#x4E2D;&#xFF0C;&#x6309;&#x5982;&#x4E0B;&#x65B9;&#x5F0F;&#x8BBE;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF1A;</p>
<pre><code>STORM_JAR_JVM_OPTS:&quot;-Datlas.conf=$ATLAS_HOME/conf/&quot;
</code></pre><p>&#x5176;&#x4E2D;ATLAS_HOME&#x6307;&#x5411;ATLAS&#x7684;&#x5B89;&#x88C5;&#x4F4D;&#x7F6E;&#x3002;
&#x4F60;&#x4E5F;&#x53EF;&#x4EE5;&#x5728;Storm Config&#x4E2D;&#x4EE5;&#x7F16;&#x7A0B;&#x65B9;&#x5F0F;&#x8BBE;&#x7F6E;&#x5B83;&#xFF1A;</p>
<pre><code>Config stormConf = new Config();
    ...
    stormConf.put(Config.STORM_TOPOLOGY_SUBMISSION_NOTIFIER_PLUGIN,
            org.apache.atlas.storm.hook.StormAtlasHook.class.getName());
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="12.3 Sqoop Hook.html" class="navigation navigation-prev " aria-label="Previous page: 12.3 Sqoop Hook">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="12.5 Kafka Bridge.html" class="navigation navigation-next " aria-label="Next page: 12.5 Kafka Bridge">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"12.4 Storm Hook","level":"1.13.4","depth":2,"next":{"title":"12.5 Kafka Bridge","level":"1.13.5","depth":2,"path":"12.5 Kafka Bridge.md","ref":"12.5 Kafka Bridge.md","articles":[]},"previous":{"title":"12.3 Sqoop Hook","level":"1.13.3","depth":2,"path":"12.3 Sqoop Hook.md","ref":"12.3 Sqoop Hook.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","splitter","-expandable-chapters-small","anchors","github","github-buttons","donate","sharing-plus","anchor-navigation-ex","-favicon","ga","disqus"],"styles":{"website":"/styles/website.css"},"pluginsConfig":{"disqus":{"useIdentifier":false,"shortName":"mantoudev"},"github":{"url":"https://github.com/mantoudev"},"splitter":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"https://mantoudev.com/images/alipay.jpg","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://mantoudev.com/images/wechatpay.jpg","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"github-buttons":{"buttons":[{"user":"mantoudev","repo":"atlas_cn","type":"star","size":"small","count":true}]},"ga":{"configuration":"auto","token":"UA-129870378-1"},"sharing":{"qq":false,"all":["google","facebook","weibo","twitter","qq","qzone","linkedin","pocket"],"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","author":"mantou","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Mantou Book","language":"zh-hans","links":{"sidebar":{"MantouDev":"https://mantoudev.com"}},"gitbook":"3.2.3","description":"吭哧吭哧"},"file":{"path":"12.4 Storm Hook.md","mtime":"2018-12-01T13:53:29.883Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-02T09:34:36.806Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-ga/plugin.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

